<?php

session_start();

?>
<?php

function output_frame_header($title)
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Content-Language" content="zh-cn" />
    <link rel="stylesheet" href="style/Stencil.css"/>
    <title><?php echo $title; ?></title>
</head>
<body>
  <!-- 志愿者网logo -->

	<div id="hd" align="center">
	  
	</div>
	<!-- 导航模块 -->
	<div class="topNav">
		<ul class="MNav">
			<li><a target="_self" href="./index.php"><font size=4><b>首页</b></font></a></li>
			<li><a target="_self" href="./list.php?mid=1"><font size=4><b>论坛</b></font></a></li>
			<li class="last"><a target="_self" href="./view_files.php"><font
					size=4><b>资料下载</b></font></a></li>
		</ul>
	</div>

	
<?php 
if (!isset( $_SESSION['u_id'] ))
{
?>
	<!-- 登录模块 -->
	<div class="tools">
		<div class="logging">
            <form name="loginForm" method="post" action="login.php">
                <font size=2>用户名</font> <input type="text" class="text" name="userName"
                    id="userName"> <font size=2>密 码</font> <input
                    type="password" class="text" name="password" id="password"> <input
                    name="auto_login" type="checkbox" checked="checked"> <font
                    size=2>记住密码</font> <input type="hidden" name="backurl" value="#">
                <input type="submit" value="登录"   id="loginsubmit">
                <a target="_blank" class="linka" href="register.html"><font size=2>立即注册</font></a>
                <a target="_blank" href="#"><font size=2>忘记密码</font></a>
			</form>
		</div>
	</div>
<?php
}
else
{
?>
	<div class="tools">
		<div class="logging">
        <?php echo $_SESSION['userName']; ?>，欢迎您！&nbsp;&nbsp;<a href="#">个人设置</a>&nbsp;&nbsp;<a href="logout.php">退出</a>
        </div>
    </div>
<?php
}

?>
	<!-- 空格 -->
	<div class="space"></div>
	<!-- 内容 -->
	<div id="wp" class="wp ">
		<!-- 布局 -->
		<div id="ct" class="wp cl">
			<div class="mn">
<?php
}

function output_frame_footer()
{
?>
    
			</div><!-- mn -->
		</div><!-- ct -->
	<!-- 布局结束 -->
	</div><!-- wp -->
	
	<div class="space"></div>
	<!-- 结尾 -->

	<!-- 结束 -->
	<div class="chaFotNav02"></div>
	<div class="chaFooter">
		<div class="footLink">
			<?php
		 echo '
			<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>投资者关系 Investor
				Relations</a> |<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>广告服务</a>
			|<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>诚征英才</a> |<a
				href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>保护隐私权</a>
			|<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>免责条款</a>
			|<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>法律顾问</a>
			|<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>意见反馈</a>
			|<a href="./index.php" target="_self" onclick=alert("谢谢访问我们的网站^~^")>关于我们</a>
			';
		?>
		</div>
		<div class="copyright">
			数据库小组 版权所有<br> Copyright ? 2012 S.C.U.T CS3 Limited All Rights
			Reserved.
		</div>
	</div>
</body>
</html>

<?php
}

?>